#pragma once
#include <time.h>

#include "Define.h"

class S_UAM_EXPORT ServerTimeMgr {
 public:
  static ServerTimeMgr& instance();
  time_t serverTime();
  void setServerTime(const time_t& serverTime);
  unsigned int today();

 private:
  ServerTimeMgr() = default;

 private:
  time_t m_prev_time = 0;
  time_t m_time_delta = 0;
};